home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / PCI Driver Development Kit / • Samples / Driver Samples / Video samples / GDX 950717 / GDX / GraphicsOSS.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-20  |  2.0 KB  |  55 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        GraphicsOSS.h
  3.  
  4.     Contains:    This file contains the declarations for the (weak) abstraction layer for Operating 
  5.                 Systems Services (OSS).
  6.  
  7.     Written by:    Sean Williams, Kevin Williams
  8.  
  9.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <2>     7/17/95    SW        Added declaration for GraphicsOSS DoVSLService()
  14.          <1>     4/15/95    SW        First Checked In
  15.  
  16. */
  17. #ifndef __GRAPHICSOSS__
  18. #define __GRAPHICSOSS__
  19.  
  20.  
  21. #include "GraphicsPriv.h"
  22. #include <Devices.h>                // IOCommandID, etc
  23. #include <Kernel.h>
  24. #include <NameRegistry.h>
  25.  
  26.  
  27. //
  28. // DoDriverIO()
  29. //    This is the entry point for the native Graphics Driver.
  30. OSErr DoDriverIO (AddressSpaceID SpaceID, IOCommandID ioCommandID, IOCommandContents ioCommandcontents, IOCommandCode ioCommandCode,
  31.         IOCommandKind ioCommandKind);
  32.  
  33. GDXErr GraphicsOSSSaveProperty(const RegEntryID *regEntryID, const char *propertyName,
  34.         const void *propertyValue, ByteCount propertySize, OSSPropertyStorage ossPropertyStorage);
  35. GDXErr GraphicsOSSGetProperty(const RegEntryID *regEntryID, const char *propertyName,
  36.         void *propertyValue, ByteCount propertySize);
  37. GDXErr GraphicsOSSDeleteProperty(const RegEntryID *regEntryID, const char *propertyName);
  38.  
  39. GDXErr GraphicsOSSSetCorePref(const RegEntryID *regEntryID, GraphicsPreferred *graphicsPreferred);
  40. GDXErr GraphicsOSSGetCorePref(const RegEntryID *regEntryID, GraphicsPreferred *graphicsPreferred);
  41. GDXErr GraphicsOSSSetHALPref(const RegEntryID *regEntryID, UInt32 halData);
  42. GDXErr GraphicsOSSGetHALPref(const RegEntryID *regEntryID, UInt32 *halData);
  43.  
  44. void GraphicsOSSKillPrivateData();
  45. GDXErr GraphicsOSSInstallVBLInterrupts(const RegEntryID *regEntryID);
  46. GDXErr GraphicsOSSNewInterruptService(void);
  47. GDXErr GraphicsOSSDisposeInterruptService(void);
  48.  
  49. Boolean GraphicsOSSSetVBLInterrupt(Boolean enableInterrupts);
  50. void GraphicsOSSVBLDefaultEnabler(void);
  51. Boolean GraphicsOSSVBLDefaultDisabler(void);
  52.  
  53. void GraphicsOSSDoVSLInterruptService(void);
  54.  
  55. #endif        // __GRAPHICSOSS__